import Vue from 'vue'
import Vuex from 'vuex'
import count from './modules/count'
import list from './modules/list'
import user from './modules/user'
import detail from './modules/detail'
import car from './modules/car'
import { createVuexPersistedState } from "vue-persistedstate"

Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    count,
    list,
    user,
    detail,
    car
  },
  plugins: [
    createVuexPersistedState({
      key: 'vuex',
      storage: window.localStorage,
      whiteList: [],
      blackList: [],
    })
  ]
})
